<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.FIM" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.FIM" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:53624/ChequeBookService.svc?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ACM" />
  <xs:import schemaLocation="http://localhost:53624/ChequeBookService.svc?xsd=xsd4" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.BGM" />
  <xs:import schemaLocation="http://localhost:53624/ChequeBookService.svc?xsd=xsd6" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" />
  <xs:complexType name="Cheque">
    <xs:sequence>
      <xs:element minOccurs="0" name="ChequeBook" nillable="true" type="tns:ChequeBook" />
      <xs:element minOccurs="0" name="ChequeBookId" type="xs:int" />
      <xs:element minOccurs="0" name="ChequeId" type="xs:int" />
      <xs:element minOccurs="0" name="ChequeNo" type="xs:int" />
      <xs:element minOccurs="0" name="ChequeStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="PayDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="PrintDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Receiver" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Cheque" nillable="true" type="tns:Cheque" />
  <xs:complexType name="ChequeBook">
    <xs:sequence>
      <xs:element minOccurs="0" name="BankAccId" type="xs:int" />
      <xs:element minOccurs="0" name="ChequeBookId" type="xs:int" />
      <xs:element minOccurs="0" name="ChequeBookStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="EndChequeNo" type="xs:int" />
      <xs:element minOccurs="0" name="MasBankAccount" nillable="true" type="tns:MasBankAccount" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="StartChequeNo" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ChequeBook" nillable="true" type="tns:ChequeBook" />
  <xs:complexType name="MasBankAccount">
    <xs:sequence>
      <xs:element minOccurs="0" name="AccountId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BankAccId" type="xs:int" />
      <xs:element minOccurs="0" name="BankAccNo" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="BankAccTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BgmSourceId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Branch" nillable="true" type="tns:MasBankBranch" />
      <xs:element minOccurs="0" name="BranchId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ACM" minOccurs="0" name="GlAccount" nillable="true" type="q1:MasAccount" />
      <xs:element minOccurs="0" name="MasBankAccountType" nillable="true" type="tns:FimMasLookUp" />
      <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.BGM" minOccurs="0" name="MasBudgetSource" nillable="true" type="q2:MasBudgetSource" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SavingBankAccId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="SavingBankAccount" nillable="true" type="tns:MasBankAccount" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="WorkArea" nillable="true" type="q3:MasWorkArea" />
      <xs:element minOccurs="0" name="WorkAreaId" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasBankAccount" nillable="true" type="tns:MasBankAccount" />
  <xs:complexType name="MasBankBranch">
    <xs:sequence>
      <xs:element minOccurs="0" name="Bank" nillable="true" type="tns:MasBank" />
      <xs:element minOccurs="0" name="BankId" type="xs:int" />
      <xs:element minOccurs="0" name="BranchId" type="xs:int" />
      <xs:element minOccurs="0" name="BranchName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="BranchNameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasBankBranch" nillable="true" type="tns:MasBankBranch" />
  <xs:complexType name="MasBank">
    <xs:sequence>
      <xs:element minOccurs="0" name="BankId" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasBank" nillable="true" type="tns:MasBank" />
  <xs:complexType name="FimMasLookUp">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FimMasLookUpType" nillable="true" type="tns:FimMasLookUpType" />
      <xs:element minOccurs="0" name="LookUpId" type="xs:int" />
      <xs:element minOccurs="0" name="LookUpTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="FimMasLookUp" nillable="true" type="tns:FimMasLookUp" />
  <xs:complexType name="FimMasLookUpType">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="LookUpTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="FimMasLookUpType" nillable="true" type="tns:FimMasLookUpType" />
  <xs:complexType name="ArrayOfCheque">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Cheque" nillable="true" type="tns:Cheque" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfCheque" nillable="true" type="tns:ArrayOfCheque" />
  <xs:complexType name="ArrayOfChequeBook">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="ChequeBook" nillable="true" type="tns:ChequeBook" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfChequeBook" nillable="true" type="tns:ArrayOfChequeBook" />
</xs:schema>